var spiderserver = localStorage.spiderserver || '127.0.0.1:80';

document.getElementById('spiderserver').value = spiderserver;
document.getElementById('spidersave').onclick = function(){
    spiderserver = document.getElementById('spiderserver').value;
    localStorage.spiderserver = spiderserver;
    $.ajax({url:"http://127.0.0.1:9798/serServerHost?spiderServerHost="+spiderserver,async:false});
    alert('Spider Server Host 保存成功。');
}

var dataserver = localStorage.dataserver || '127.0.0.1:80';
document.getElementById('dataserver').value = dataserver;
document.getElementById('datasave').onclick = function(){
    dataserver = document.getElementById('dataserver').value;
    localStorage.dataserver = dataserver;
    $.ajax({url:"http://127.0.0.1:9798/serServerHost?dataServerHost="+dataserver,async:false});
    alert('Data Server Host 保存成功。');
}
